package com.yang.newCustomersTransferBackProcess.pojo;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Entity(name = "circulation_data_extraction")
@EntityListeners(AuditingEntityListener.class)
public class CirculationDataExtraction {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private int customerId;
    private String customerName;
    @CreatedDate
    private Date createdAt;
    @CreatedDate
    @LastModifiedDate
    private Date updatedAt;

//    @Lob //longtext
//    @Column(columnDefinition="text")  // text
//    private List<Customer> CustomerList = new ArrayList<>();
}
